// 定义注册的所有的接口

import instance from '@/utils/request.js';

// 验证手机号是否被注册过接口
export function docheckphoneApi(data) {
    return instance({
        url: '/api/user/docheckphone',
        method: 'post',
        data,
    })
}

//发送短信验证码
export function dosendmsgcodeApi(data) {
    return instance({
        url: '/api/user/dosendmsgcode',
        method: 'post',
        data,
    })
}

//验证短信验证码
export function docheckcodeApi(data) {
    return instance({
        url: '/api/user/docheckcode',
        method: 'post',
        data,
    })
}

// 注册完成接口
export function dofinishregisterApi(data) {
    return instance({
        url: '/api/user/dofinishregister',
        method: 'post',
        data,
    })
}
